package com.neouton.crm.pm.mapper;

import com.neouton.crm.pm.entity.ProjectMemberVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 巾凡
* @description 针对表【project_member(项目成员表)】的数据库操作Mapper
* @createDate 2022-11-09 09:30:34
* @Entity com.neouton.crm.pm.entity.ProjectMember
*/
@Mapper
public interface ProjectMemberMapper {

    /**
     * 查询用户
     * @param userId
     * @return
     */
//    ProjectMemberVO queryUser(@Param("userId") Integer userId);

    /**
     * 查询指定群组
     *
     * @return
     */
//    ProjectMemberVO selIsGroup();

    /**
     * 添加项目成员
     * @param projectManageId
     * @param memberIds
     */
    void addProjectMember(@Param("projectManageId") Integer projectManageId,@Param("memberIds") List<String> memberIds);

    int deleteByPrimaryKey(Long id);

    int insert(ProjectMemberVO record);

    int insertSelective(ProjectMemberVO record);

    ProjectMemberVO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProjectMemberVO record);

    int updateByPrimaryKey(ProjectMemberVO record);

    Boolean deleteProjectByOppId(Integer oppId);
}
